<template>
  <navigator class="hot-list" :url="`/pages/courseTypeDetail/courseTypeDetail?id=${data.id}`">
      <image :src="data.image"></image>
      <view class="title">{{data.title}}</view>
      <view class="num"><text class="red">33</text>人正在学习</view>
  </navigator>
</template>
<script>
export default {
  name:'hot-live-list',
  props:{
    data:{
      type:Object,
      default:()=>{}
    }
  },
  data(){
    return{

    }
  }
}
</script>
<style lang="scss" scoped>
.hot-list{
  image{
    width: 100%;
    height: 180rpx;
    border-radius: $border-radius-base;
  }
  .num{
    margin-top: 10rpx;
    color: $font-color-base;
    font-size: $font-sm;
    .red{
      color:$font-color-red;
      font-size: $font-sm;
    }
  }
}
</style>